package com.victor.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.victor.entity.Comments;

@Mapper
public interface CommentsDao {
	int batchDelete(@Param("ids")int[] ids);

	int insertComments(Comments record);

    Comments findById(Integer id);

    int update(Comments record);

    List<Map<String,String>> findByPid(@Param("id")Integer id);

    List<Comments> findByUserIdAndPid(@Param("userid")String cUserid, @Param("pid")String cPid);
}